//预报数据
//import NetWork from '@/service/_request.js';
import NetWork from '@/service/_request.js'

// import { NetWork } from "@/service/_request.js";

// var NetWorkSer = null;
// if(process.env.VUE_APP_ENV == 'development'){
//     NetWorkSer = new NetWork("python");
// }else{
//     NetWorkSer = new NetWork("http://111.198.60.33:9093/");
// }
class meteoroEarlyWarningApi {
  //预报通用接口
  async geoJsonData(params) {
    return NetWork.post('mete_api/v1/common/geoJsonData', params)
  }
  //
  async pre24H_findByTime(params) {
    return NetWork.get(
      'mete_api/v1/common/administrativeDivision/gdfsPre24HGeoJsons',
      params
    )
  }
  //python接口
  //实时温度
  async get_temperature_realtime(params) {
    return NetWorkSer.get('get_temperature_realtime', params)
  }
  //java接口
  //预报数据云量
  async get_tb_gdfs_cloud_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Cloud/get_tb-gdfs-cloud_findByCon',
      params
    )
  }
  //预报数据湿度
  async get_tb_gdfs_humidity_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Humidity/get_tb-gdfs-humidity_findByCon',
      params
    )
  }
  //预报数据最大相对湿度
  async get_tb_gdfs_humidity_max_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Cloud/get_tb-gdfs-humidity-max_findByCon',
      params
    )
  }
  //预报数据最小相对湿度
  async get_tb_gdfs_humidity_min_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Cloud/get_tb-gdfs-humidity-min_findByCon',
      params
    )
  }
  //预报数据3小时降水
  async get_tb_gdfs_precipitation3_hour_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Cloud/get_tb-gdfs-precipitation3-hour_findByCon',
      params
    )
  }
  //6小时降水
  async get_tb_gdfs_precipitation6_hour_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Precipitation6-Hour/get_tb-gdfs-precipitation6-hour_findByCon',
      params
    )
  }
  //12小时降水
  async get_tb_gdfs_precipitation12_hour_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Precipitation12-Hour/get_tb-gdfs-precipitation12-hour_findByCon',
      params
    )
  }
  //24小时降水
  async get_tb_gdfs_precipitation24_hour_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Precipitation24-Hour/get_tb-gdfs-precipitation24-hour_findByCon',
      params
    )
  }
  //降水相态
  async get_tb_gdfs_precipitation_type_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Precipitation-Type/get_tb-gdfs-precipitation-type_findByCon',
      params
    )
  }
  //温度
  async get_tb_gdfs_temperature_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Temperature/get_tb-gdfs-temperature_findByCon',
      params
    )
  }
  //最高温度
  async get_tb_gdfs_temperature_max_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Temperature-Max/get_tb-gdfs-temperature-max_findByCon',
      params
    )
  }
  //最低温度
  async get_tb_gdfs_temperature_min_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Temperature-Min/get_tb-gdfs-temperature-min_findByCon',
      params
    )
  }
  //能见度
  async get_tb_gdfs_visibility_surface_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Visibility-Surface/get_tb-gdfs-visibility-surface_findByCon',
      params
    )
  }
  //风向风速
  async get_tb_gdfs_wind_speed_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Gdfs-Wind-Speed/get_tb-gdfs-wind-speed_findByCon',
      params
    )
  }
  //诊断气象逐小时预报信息
  async get_tb_ocf_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Ocf/get_tb-ocf_findByCon',
      params
    )
  }
  //辐射逐小时预报信息
  async get_tb_radi_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Radi/get_tb-radi_findByCon',
      params
    )
  }
  //短时强对流
  async get_tb_scw_findByCon(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-Scw/get_tb-scw_findByCon',
      params
    )
  }

  async info_getTime(params) {
    return NetWork.post(
      '/itg/dlqxfw/rds/prediction/pred/tb-gdfs-info/post_tb-gdfs-info_getThreeTime',
      params
    )
  }

  async info_geo(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-gdfs-info/post_tb-gdfs-info_geo',
      params
    )
  }
  //点击经纬度返回信息
  async Returnsinformation(params) {
    return NetWork.post(
      'itg/dlqxfw/rds/prediction/pred/tb-gdfs-info/post_tb-gdfs-info_findByLatAndLon',
      params
    )
  }
  //图片
  async getTu(params) {
    return NetWork.post(
      '/itg/dlqxfw/rds/prediction/pred/tb-gdfs-info/post_tb-gdfs-info_geoPicture',
      params
    )
  }
}
export default new meteoroEarlyWarningApi()
